package ro.qi.framework.sys.mail.entities;

public class MessageStatus {
	
	private int id = 0;
	private String name = "";
	
	public MessageStatus(int id) {
		setId(id);
		select();
	}

	private void select() {
		switch(getId()) {
			case 1:
				setName("Not sent");
				break;
			case 2:
				setName("Sent");
				break;
			case 3:
				setName("Wait");
				break;
			case 4:
				setName("Error");
				break;
		}
			
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
